package com.ews.onlineexchange.model;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.validation.constraints.NotNull;

@Entity
public class MarginAccount extends DataEntity {

	/**
	 * 
	 */
	private static final long	serialVersionUID	= 1L;

	private String				companyName;
	private String				bankName;
	private String				iconCssClassName;
	private String				bankUrl;
	private String				serialNumber;
	private MarginAccount		parentAccount;
	private String				sockAddress;
	private Integer				sockPort;
	private boolean				enabled;

	@NotNull
	public String getCompanyName() {
		return companyName;
	}

	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}

	@NotNull
	public String getBankName() {
		return bankName;
	}

	public void setBankName(String bankName) {
		this.bankName = bankName;
	}

	@NotNull
	public String getIconCssClassName() {
		return iconCssClassName;
	}

	public void setIconCssClassName(String iconCssClassName) {
		this.iconCssClassName = iconCssClassName;
	}

	public String getBankUrl() {
		return bankUrl;
	}

	public void setBankUrl(String bankUrl) {
		this.bankUrl = bankUrl;
	}

	@NotNull
	public String getSerialNumber() {
		return serialNumber;
	}

	public void setSerialNumber(String serialNumber) {
		this.serialNumber = serialNumber;
	}

	@ManyToOne
	public MarginAccount getParentAccount() {
		return parentAccount;
	}

	public void setParentAccount(MarginAccount parentAccount) {
		this.parentAccount = parentAccount;
	}

	public String getSockAddress() {
		return sockAddress;
	}

	public void setSockAddress(String sockAddress) {
		this.sockAddress = sockAddress;
	}

	public Integer getSockPort() {
		return sockPort;
	}

	public void setSockPort(Integer sockPort) {
		this.sockPort = sockPort;
	}

	public boolean isEnabled() {
		return enabled;
	}

	public void setEnabled(boolean enabled) {
		this.enabled = enabled;
	}

}
